package com.charlotte.study.gupao.vistor.general;

/**
 * Created by Tom.
 */
public class Test {

    public static void main(String[] args) {
        ObjectStructure collection = new ObjectStructure();
        System.out.println("ConcreteVisitorA handle elements:");
        IVistor visitorA = new ConcreteVistorA();
        collection.accept(visitorA);
        System.out.println("------------------------------------");
        System.out.println("ConcreteVisitorB handle elements:");
        IVistor visitorB = new ConcreteVistorB();
        collection.accept(visitorB);
    }

}
